/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package stis.statpro.ibs;

import com.sun.java.swing.plaf.windows.WindowsLookAndFeel;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Frame;
import java.awt.Toolkit;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.WindowConstants;
import stis.statpro.ibs.view.PanelMenuUtama;

/**
 *
 * @author imam habib pammungkas <imam habib pamungkas@gmail.com>
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        try {
            UIManager.setLookAndFeel(new WindowsLookAndFeel());
            SwingUtilities.invokeLater(new Runnable() {
                
                @Override
                public void run() {
                    JFrame view = new JFrame("Aplikasi Monitoring Data IBS");
                    view.setLayout(new BorderLayout());
                    view.setMinimumSize(new Dimension(800, 600));
                    view.setLocationRelativeTo(null);
                    view.setExtendedState(Frame.MAXIMIZED_BOTH);
                    view.add(new PanelMenuUtama());
                    view.setVisible(true);
                    view.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
                }
            });
        } catch (UnsupportedLookAndFeelException ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
